package com.workcell.workdata.xthings.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
@ApiModel(value = "DictVo", description = "字典VO类")
public class DictVo {
    /**
     * 字典类型编码
     */
    @NotEmpty(message = "字典类型编码不能为空")
    @ApiModelProperty("字典类型编码")
    private String dictTypeCode;

    /**
     * 字典类型名称
     */
    @NotEmpty(message = "字典类型名称不能为空")
    @ApiModelProperty("字典类型名称")
    private String dictTypeName;

    /**
     * 字典项编码
     */
    @NotEmpty(message = "字典项编码不能为空")
    @ApiModelProperty("字典项编码")
    private String dictCode;

    /**
     * 字典项名称
     */
    @NotEmpty(message = "字典项名称不能为空")
    @ApiModelProperty("字典项名称")
    private String dictValue;

    /**
     * 字典描述
     */
    @ApiModelProperty("字典描述")
    private String description;

    /**
     * 字典排序
     */
    @ApiModelProperty("字典排序")
    private Integer sort;
}
